/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Trabalho3.PasswordChecker;



/**
 *
 * @author geraldo
 */
public class PasswordCheckerMain {
    String password;
    int opcao;
    PasswordChecker calculaSenha;
    public PasswordCheckerMain(String password, int opcao) {
        this.password = password;
        this.opcao = opcao;
    }

    void start(){
       if (opcao ==1){
           calculaSenha = new PasswordChecker01(password);
           System.out.println(calculaSenha.classificarSenha());
       }
       else if (opcao ==2){
            calculaSenha = new PasswordChecker02(password);
           System.out.println(calculaSenha.classificarSenha());
       }
       else{System.out.println("opcao invalida!"); }
    }
    
    }